﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;

namespace DatabaseManager
{
    public class ConnectManager2
    {
        protected ConnectManager2()
        {

        }


        public static OleDbConnection GetSystemConnect()
        {
            if (connect != null)
            {
                return connect;
            }

            connetionString = "Provider=SQLOLEDB;Data Source=192.168.5.231;password=LIS9op0(OP);User ID=sa;Initial Catalog=lisdb";
            connect = new OleDbConnection(connetionString);
            connect.Open();

            return connect;
        }

        private static OleDbConnection connect;
        private static string connetionString;
    }
}
